package cn.edu.zafu.bigdata.liuwenyi;

class MatheOperations{

    public int add(int a, int b){
        return a + b;
    }

    public double add(double a,double b){
        return a + b;
    }

    public int add(int a,int b, int c){
        return a + b + c;
    }
}

public class TestMathOperations {
    public static void main(String[] args) {
        MatheOperations mathOps = new MatheOperations();

        int sum1 = mathOps.add(10, 20);
        System.out.println("10 + 20 = "+sum1);

        double sum2 = mathOps.add(10.31,11.21);
        System.out.println("10.31 + 11.21 = "+sum2);

        int sum3 =mathOps.add(7,7,7);
        System.out.println("7 + 7 + 7 = "+sum3);

    }
}
